﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CodeGenerator.aspx.cs" Inherits="CodeGenerator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title> CodeGenerator</title>
</head>
<body>
    CodeGenerator<form id="form1" runat="server">
    <div>
        <br />
        数据库连接：<asp:TextBox ID="txt_ConnectString" runat="server" Text="Data Source=LocalHost;Initial Catalog=DB;User ID=sa;Password=1234" Width="500"></asp:TextBox>
        <br/>
        命名空间：<asp:TextBox ID="txtnamespace" runat="server"></asp:TextBox>
        <br/>
        <asp:Button ID="btnModel" runat="server" Text="生成实体类" onclick="btnModel_Click" />&nbsp;
        <asp:Button ID="btnDBAccess" runat="server" Text="生成数据库访问层" onclick="btnDBAccess_Click" />
        <asp:Button ID="btnBusiness" runat="server" Text="生成业务逻辑层层" onclick="btnBusiness_Click" 
            />
    </div>
    <div>
         <asp:Button ID="btn_OleDbModel" runat="server" Text="生成Ole实体类" 
             onclick="btn_OleDbModel_Click"  />&nbsp;
        <asp:Button ID="btn_OleDbDAccess" runat="server" Text="生成Ole数据库访问层" 
             onclick="btn_OleDbDAccess_Click"  /><asp:Button ID="btn_OleDbBLL" 
             runat="server" Text="生成Ole逻辑层" onclick="btn_OleDbBLL_Click" />
    </div>
    <div>
        <asp:Button ID="btn_Insert" runat="server" Text="insert" 
            onclick="btn_Insert_Click" />
        <asp:Button ID="btn_Update" runat="server" Text="update" 
            onclick="btn_Update_Click" />
        <asp:Button ID="btn_Delete" runat="server" Text="Delete" 
            onclick="btn_Delete_Click" />
        <asp:Button ID="btn_GetModel" runat="server" Text="btn_GetModel" 
            onclick="btn_GetModel_Click" />
        <asp:Button ID="btn_GetModels" runat="server" Text="btn_GetModels" 
            onclick="btn_GetModels_Click" />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    </div>
    </form>
</body>
</html>

